# Studio Nodoka gtkrc, based on Aqualooks
#
# Authors:
# Daniel Geiger <dgeiger_343@yahoo.com>
# Martin Sourada <martin.sourada@seznam.cz>
#
# Uses the Nodoka theme engine, forked from Murrine theme engine

gtk_color_scheme = "fg_color:#cccccc\nbg_color:#525252\nbase_color:#ffffff\ntext_color:#000000\nselected_bg_color:#009bf9\nselected_fg_color:#ffffff\ntooltip_bg_color:#B5D5F5\ntooltip_fg_color:#000000"

gtk-icon-sizes		= "gtk-button=16,16"							# Set icon size for button without text
gtk-button-images	= 0									# Disables icons for buttons with text
gtk-toolbar-style	= 0									# Disables text in toolbar
gtk-auto-mnemonics	= 1									# Disables ugly lines under menu items

style "murrine-default"
{
	GtkWidget::new-tooltip-style =1

	GtkButton::default_border	= { 0, 0, 0, 0 }
	GtkButton::child-displacement-x	= 0
	GtkButton::child-displacement-y	= 1

	GtkRange::trough_border		= 0
	GtkRange::slider_width		= 14
	GtkRange::stepper_size		= 14
  	GtkRange::stepper_spacing	= 0

	GtkScale::slider-length		= 28

	GtkPaned::handle_size		= 6

	GtkScrollbar::min_slider_length	= 40
	GtkCheckButton::indicator_size	= 14
  	GtkRadioButton::indicator_size	= 14
	GtkMenuBar::internal-padding	= 0
	GtkTreeView::expander_size	= 14
	GtkExpander::expander_size	= 16

	xthickness			= 1
	ythickness			= 1

  	GtkTreeView::odd_row_color 	= shade (0.929458256, @base_color)
#  	GtkTreeView::even_row_color 	= @base_color

	fg[NORMAL]			= @fg_color
	fg[PRELIGHT]			= @fg_color
	fg[ACTIVE]			= @fg_color
	fg[SELECTED]			= @selected_fg_color
	fg[INSENSITIVE]			= shade (0.7019, @selected_fg_color)

	bg[NORMAL]			= @bg_color
	bg[PRELIGHT]			= shade (1.0346, @bg_color)
	bg[ACTIVE]			= shade (0.9437, @bg_color)
	bg[SELECTED]			= @selected_bg_color
	bg[INSENSITIVE]			= shade (0.9437, @bg_color)

	base[NORMAL]			= @base_color
	base[PRELIGHT]			= shade (0.3967, @base_color)
	base[ACTIVE]			= shade (0.52, @selected_fg_color)
	base[SELECTED]			= @selected_bg_color
	base[INSENSITIVE]		= shade (0.9437, @bg_color)

	text[NORMAL]			= @text_color
	text[PRELIGHT]			= @text_color
	text[ACTIVE]			= @selected_fg_color
	text[SELECTED]			= @selected_fg_color
	text[INSENSITIVE]		= darker (@selected_fg_color)

	engine "nodoka"
	{
		scrollbar_color		= shade (1.040897799, "#008DD7")
		animation		= TRUE # FALSE = disabled, TRUE = enabled
#		contrast		= 1.0
		gradients		= TRUE
		hilight_ratio		= 0.909090909
		listviewheaderstyle	= 1 # 0 = flat, 1 = gradient, 2 = raised
		listviewstyle		= 1 # 0 = nothing, 1 = dotted
		menubarstyle		= 0 # 0 = flat, 1 = normal raised gradient, 2 = normal lowered gradient, 3 = menubar gradient
		toolbarstyle		= 0 # 0 = flat, 1 = normal raised gradient, 2 = normal lowered gradient, 3 = menubar gradient
		roundness		= 6 # 0 = squared, 1 = old default, more will increase roundness
		scrollbarstyle		= 1 # 0 = nothing, 1 = circles, 2 = bars
		stripes			= FALSE # enable or disable stripes in progressbars
		bullet_color		= "#0c90c7"
		focus_fill		= TRUE # enable or disable focus overlay fill
		focus_inner		= TRUE	# TRUE = secondary focus ring inside, FALSE = secondary focus ring outside widgets
	}

}

# Evolution (and some deprecated widgets) use bg and fg for its listview instead of 
# base and text like they should, so we override it.
style "evolution-hack" = "murrine-default"
{	
	bg[ACTIVE]	= @bg_color
	bg[SELECTED]	= shade (1.040897799, @selected_bg_color)
	fg[ACTIVE]	= @text_color
	fg[SELECTED]	= @selected_fg_color
}

style "murrine-bright" = "murrine-default"
{
	bg[SELECTED]	= shade (1.040897799, @selected_bg_color)
}


style "murrine-wide" = "murrine-default"
{
	xthickness	= 2
	ythickness	= 2
}

style "murrine-wide-bright" = "murrine-wide"
{
	bg[SELECTED]	= shade (1.040897799, @selected_bg_color)
}

style "murrine-wider" = "murrine-default"
{
	xthickness	= 3
	ythickness	= 3
}

style "murrine-wider-bright" = "murrine-wider"
{
	bg[SELECTED]	= shade (1.040897799, @selected_bg_color)
}

style "murrine-button" = "murrine-wider"
{
	ythickness = 3
	xthickness = 3

	bg[NORMAL]   =  shade (1.02,@bg_color)
	bg[ACTIVE]   =  shade (0.85,@bg_color)
	bg[PRELIGHT] =  mix(0.90, shade (1.05,@bg_color), @selected_bg_color)
	bg[SELECTED] =  shade (1.0, @selected_bg_color)
	
	engine "aurora" {
	curvature	= 3.0
	old_arrowstyle  = FALSE
	}
}

style "murrine-notebook" = "murrine-wide-bright"
{
	bg[ACTIVE]   	= shade (0.80, @bg_color)
  	bg[INSENSITIVE] = shade (0.9221, @bg_color)
  	bg[NORMAL]      = shade (1.0346, @bg_color)
	bg[PRELIGHT] 	= lighter (@bg_color)
}

#style "murrine-menubar" = "murrine-default"
#{
#	bg[NORMAL]	= mix (0.8, lighter(@bg_color), shade(1.040897799, @selected_bg_color))
#	bg[NORMAL]	= shade (1.02, @bg_color)
#}

#style "murrine-panel-menubar" = "murrine-menubar"
#{
#	bg[NORMAL]	= shade (0, @bg_color)
#	bg_pixmap[NORMAL] = "./panel/panel.png"
#}

style "murrine-menu" = "murrine-default"
{
	xthickness	= 2

	bg[NORMAL]	= @bg_color
}

style "murrine-menu-item" = "murrine-default"
{
	xthickness	= 2
	ythickness	= 2

	bg[PRELIGHT]	= @bg_color
	bg[SELECTED]	= shade (0.9, @selected_bg_color)
	fg[PRELIGHT]	= @selected_fg_color
	text[PRELIGHT]	= @selected_fg_color
}

#style "murrine-separator-menu-item"
#{
#    	engine "pixmap" 
#	{
#	image 
#	{
#	function        = HLINE
#	recolorable     = TRUE
#	file            = "Menu/menu-line.png"
#	stretch         = TRUE
#	}
#    }
#}

style "murrine-tree" = "murrine-wide"
{
	bg[ACTIVE]	= shade (0.9, @bg_color)
}

style "murrine-frame-title" = "murrine-default"
{
	fg[NORMAL]	= lighter (@fg_color)
}

style "murrine-tooltips"
{
	xthickness	= 4
	ythickness	= 4

	bg[NORMAL]	= @tooltip_bg_color
	fg[NORMAL]	= @tooltip_fg_color
}

style "murrine-progressbar" = "murrine-wide-bright"
{
  	bg[NORMAL]      = shade (0.80, @bg_color)
  	bg[SELECTED]    = @selected_bg_color
	fg[PRELIGHT]	= shade(1.1946, @selected_fg_color)
	engine "murrine"{
		roundness = 6
#		contrast = 1.0
		highlight_shade = 1.2
#		lightborder_shade = 1.1
		gradient_shades = {1.2,1.1,1.0,0.9}
	}
}

style "murrine-combo" = "murrine-button"
{
}

style "murrine-status" = "murrine-wide"
{
	GtkStatusbar	::shadow-type	= GTK_SHADOW_IN
}

style "murrine-entry" = "murrine-button"
{
}

style "murrine-scrollbar" = "murrine-button"
{
	text[NORMAL]		= shade (0.2, @bg_color)
	text[PRELIGHT]		= shade (0.2, @bg_color)
	text[ACTIVE]		= @text_color
}

style "murrine-scale" = "murrine-button"
{

	GtkRange	::trough-side-details	= 0
	GtkRange	::slider_width		= 16

	bg[SELECTED]    = shade (1.1, @selected_bg_color)
	fg[PRELIGHT]	= shade(1.1946, @selected_fg_color)
}

style "murrine-checkbutton" = "murrine-button"
{
	bg[PRELIGHT]	=  mix (0.3, @selected_bg_color, @bg_color)
#	bg[SELECTED]	=  "#f152c"
	bg[NORMAL]	=  @bg_color
	
	text[NORMAL]	=  @fg_color			#Color for selected checks/radio items.
	text[PRELIGHT]	=  shade (1.2, @fg_color)	#Color for selected checks/radio items on prelight.
	text[INSENSITIVE]	=  shade (0.9, @base_color)
	
	engine "murrine"
	{
		roundness = 6
		contrast = 1.5
		highlight_shade = 1.0
		lightborder_shade = 1.0
		gradient_shades = {1.5,1.3,1.0,0.9}
	}
}

style "murrine-spin-button" = "murrine-entry"
{
}

# widget styles
class "GtkWidget"	style "murrine-default"
class "GtkButton"	style "murrine-button"
class "GtkCombo"	style "murrine-combo"
class "GtkRange"	style "murrine-wide-bright"
class "GtkFrame"	style "murrine-wide"
class "GtkMenu"		style "murrine-menu"
class "GtkEntry"	style "murrine-entry"
class "GtkMenuItem"	style "murrine-menu-item"
class "GtkNotebook"	style "murrine-notebook"
class "GtkProgressBar"	style "murrine-progressbar"
#class "GtkMenuBar"	style "murrine-menubar"
class "GtkStatusbar"	style "murrine-status"
class "GtkScrollbar"	style "murrine-scrollbar"
class "GtkHBox"		style "murrine-wider"
class "GtkScale"	style "murrine-scale"
class "GtkCheck*"	style "murrine-checkbutton"
class "GtkRadio*"	style "murrine-checkbutton"
class "GtkSpinButton"	style "murrine-spin-button"

widget_class "*MenuItem.*"		style "murrine-menu-item"

# combobox stuff
widget_class "*.GtkComboBox.GtkButton"	style "murrine-combo"
widget_class "*.GtkCombo.GtkButton"	style "murrine-combo"
widget_class "*.GtkComboBox.GtkFrame"	style "murrine-wider"

# tooltips stuff
widget "gtk-tooltip*"			style "murrine-tooltips"

# treeview stuff
widget_class "*.GtkTreeView.GtkButton"	style "murrine-tree"
widget_class "*.GtkCTree.GtkButton"	style "murrine-tree"
widget_class "*.GtkList.GtkButton"	style "murrine-tree"
widget_class "*.GtkCList.GtkButton"	style "murrine-tree"
widget_class "*.GtkFrame.GtkLabel"	style "murrine-frame-title"

# notebook stuff
widget_class "*.GtkNotebook.*.GtkEventBox"	style "murrine-notebook"
widget_class "*.GtkNotebook.*.GtkViewport"	style "murrine-notebook"
widget_class "*<GtkNotebook>*<GtkDrawingArea>"  style "murrine-notebook"
widget_class "*<GtkNotebook>*<GtkLayout>"       style "murrine-notebook"

# these should really use base and text colors instead
widget_class "*GtkCTree*"	style "evolution-hack"
widget_class "*GtkList*"	style "evolution-hack"
widget_class "*GtkCList*"	style "evolution-hack"
widget_class "*.ETree.*"	style "evolution-hack"
widget_class "*EInfoLabel*"	style "evolution-hack"

#panel bg hack
#widget "PanelMenu"		style "murrine-panel-menubar"
# Theme panel elements
#widget "*Panel*Widget*" 	style "murrine-panel-menubar"
#widget "*PanelApplet*" 		style "murrine-panel-menubar"
#widget "*fast-user-switch*"	style "murrine-panel-menubar"
#class "PanelApp*" 		style "murrine-panel-menubar"
#class "PanelToplevel*" 		style "murrine-panel-menubar"
#widget_class "*Mail*" 		style "murrine-panel-menubar"
#widget_class "*notif*" 		style "murrine-panel-menubar"
#widget_class "*Notif*" 		style "murrine-panel-menubar"

#Panel Text change
#include "panel-fontrc"style "desktop-icon"
#
#{
#    NautilusIconContainer::frame_text = 0
#    text[NORMAL] = "#000000"
#    NautilusIconContainer::normal_alpha = 70
#    font_name = "Bold"
#}

#class "GtkWidget" style "desktop-icon"

#NautilusIconContainer::dark_info_color="#888888"
#NautilusIconContainer::light_info_color="#bbbbbb"
#NautilusIconContainer::highlight_alpha=200

#style "my_color"
#{
#    fg[NORMAL] = "#878787"
#}
#widget "*PanelWidget*" style "my_color"
#widget "*PanelApplet*" style "my_color"
#widget_class "*MenuItem*" style "my_color"
#widget_class "*ToolItem*" style "my_color"
#widget_class "*SeparatorMenuitem*" style "my_color"
#widget_class "*SeparatorToolitem*" style "my_color"
#widget_class "*ImageMenuitem*" style "my_color"
#widget_class "*RadioMenuitem*" style "my_color"
#widget_class "*CheckMenuitem*" style "my_color"
#widget_class "*TearoffMenuitem*" style "my_color"

Nautilus breadcrumbs based on Elementary mockup
include "elementary_nautilus.rc"

#evolution new button workaround (should be fixed in Evo 2.24)
style "murrine-evo-new-button-workaround"
{
	engine "nodoka"
	{
		toolbarstyle = 0
	}
}

widget_class "EShellWindow.GtkVBox.BonoboDock.BonoboDockBand.BonoboDockItem*" style "murrine-evo-new-button-workaround"
